package com.yjtc.cbg.basicmvpframwork.ui.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.yjtc.cbg.basicmvpframwork.R;
import com.yjtc.cbg.basicmvpframwork.di.component.DaggerActivityComponent;
import com.yjtc.cbg.basicmvpframwork.ui.App;

import javax.inject.Inject;

public class MainActivity extends AppCompatActivity {

    @Inject
    App mApp;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        DaggerActivityComponent.builder().appComponent(mApp.getAppComponent()).build().inject(this);
    }
}
